<?php
namespace addons\shopro\job;

use think\Db;
use think\queue\Job;

class Queuejob {



    //发送公众号模板消息
    public function official_account_push_message(Job $job, $data){

        $config = \addons\shopro\model\Config::where('name', 'order')->value('value');
        $config = json_decode($config, true);

        if (!empty($config['pintuan']['wxgzh_msg'])){
            send_public_template_message($data);
        }



        //删除任务
        $job->delete();
    }

    //失败操作
    public function failed($data){

    }
}